package net.anzix.jhacks.flexclipse.dialogs;

import org.eclipse.core.resources.IContainer;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;

public class ProjectFileSelectionDialog extends Dialog {

	final IContainer container;

	Tree tree;
	
	public ProjectFileSelectionDialog(final Shell parentShell, final IContainer container) {
		super(parentShell);
		this.container = container;
	}

	public ProjectFileSelectionDialog(final IShellProvider parentShell, final IContainer container) {
		super(parentShell);
		this.container = container;
	}

	@Override
	protected Control createContents(Composite parent) {
		Control control = super.createContents(parent);
		
		tree = new Tree(parent, SWT.NORMAL);
		tree.setData(container);
		return control;
	}

	
	
}
